home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / usr_-_Usr_Files / INCLUDE / FNMATCH.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  2KB  |  48 lines

  1. /* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  2.  
  3. This library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Library General Public License as
  5. published by the Free Software Foundation; either version 2 of the
  6. License, or (at your option) any later version.
  7.  
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  11. Library General Public License for more details.
  12.  
  13. You should have received a copy of the GNU Library General Public
  14. License along with this library; see the file COPYING.LIB.  If
  15. not, write to the Free Software Foundation, Inc., 675 Mass Ave,
  16. Cambridge, MA 02139, USA.  */
  17.  
  18. #ifndef    _FNMATCH_H
  19.  
  20. #define    _FNMATCH_H    1
  21.  
  22. #include <features.h>
  23.  
  24. __BEGIN_DECLS
  25.  
  26. /* Bits set in the FLAGS argument to `fnmatch'.  */
  27. #define    FNM_PATHNAME    (1 << 0) /* No wildcard can ever match `/'.  */
  28. #define    FNM_NOESCAPE    (1 << 1) /* Backslashes don't quote special chars.  */
  29. #define    FNM_PERIOD    (1 << 2) /* Leading `.' is matched only explicitly.  */
  30.  
  31. #if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined (_GNU_SOURCE)
  32. #define    FNM_FILE_NAME    FNM_PATHNAME /* Preferred GNU name.  */
  33. #define    FNM_LEADING_DIR    (1 << 3) /* Ignore `/...' after a match.  */
  34. #define    FNM_CASEFOLD    (1 << 4) /* Compare without regard to case.  */
  35. #endif
  36.  
  37. /* Value returned by `fnmatch' if STRING does not match PATTERN.  */
  38. #define    FNM_NOMATCH    1
  39.  
  40. /* Match STRING against the filename pattern PATTERN,
  41.    returning zero if it matches, FNM_NOMATCH if not.  */
  42. extern int fnmatch __P ((__const char *__pattern, __const char *__string,
  43.              int __flags));
  44.  
  45. __END_DECLS
  46.  
  47. #endif /* fnmatch.h */
  48.